
        <f:view>
            <h:form>
                <h:outputText value="No results were found." rendered="#{empty ForumsSession.messagesFound && empty ForumsSession.threadsFound}"/>
                <br><br>
                <rich:dataTable width="100%" rendered="#{!empty ForumsSession.threadsFound}" id="threadsTable" rows="20" value="#{ForumsSession.threadsFound}" var="thread" border="1" >
                    <rich:column>
                        <f:facet name="header">
                            <h:outputText value="Thread" />
                        </f:facet>
                        <h:commandLink value="#{thread.subject}" target="message" action="vtFound">
                            <f:setPropertyActionListener target="#{ForumsSession.currentThread}" value="#{thread}" />
                            <a4j:support event="onclick" oncomplete="window.location.href='/site/faces/forum/tFound.jsp';"/>
                        </h:commandLink>
                    </rich:column>
                </rich:dataTable>
                <rich:datascroller for="threadsTable" maxPages="5" page="#{ForumsSession.aux1}" rendered="#{!empty ForumsSession.threadsFound}"/>
                
                <rich:dataTable width="100%" rendered="#{!empty ForumsSession.messagesFound}" id="messagesTable" rows="5" value="#{ForumsSession.messagesFound}" var="message" border="1" >
                    <rich:column >
                        <f:facet name="header">
                            <h:outputText value="Message" />
                        </f:facet>
                        <h:commandLink value="#{message.subject}" target="message" action="vmFound" >
                            <f:setPropertyActionListener target="#{ForumsSession.currentThread}" value="#{message.topic}" />
                            <f:setPropertyActionListener target="#{ForumsSession.currentMessage}" value="#{message}" />
                            
                            <a4j:support event="onclick" oncomplete="window.location.href='/site/faces/forum/tFound.jsp';"/>
                        </h:commandLink>
                    </rich:column>
                    <rich:column>
                        <f:facet name="header">
                            <h:outputText value="Content" />
                        </f:facet>
                        <h:outputText value="#{message.content}" />
                    </rich:column>
                </rich:dataTable>
                <rich:datascroller for="messagesTable" maxPages="5" page="#{ForumsSession.aux2}" rendered="#{!empty ForumsSession.messagesFound}"  />
                <br>
            </h:form>
        </f:view>

